module.exports = {
  presets: [
    "@vue/cli-plugin-babel/preset",
    [
      "@vue/babel-preset-jsx",
      {
        injectH: false,
      },
    ],
  ],
  plugins: [
    [
      'import',
      {
        libraryName: 'vant',
        style: (name) => `${name}/style/less`,
      },
      'vant',
    ],
    [
      "component",
      {
        libraryName: "@xiaoe/js-tools",
        style: false
      },
      "@xiaoe/js-tools"
    ],
    [
      'component', {
        libraryName: '@xiaoe/goose',
        style: false
      },
      '@xiaoe/goose'
    ],
    [
      "component",
      {
        libraryName: "@xiaoe/nvwa",
        style: true,
      },
      "@xiaoe/nvwa",
    ],
    [
      "component",
      {
        libraryName: "@xiaoe/xiaoe-e-commerce",
        style: false
      },
      "@xiaoe/xiaoe-e-commerce"
    ],
    [
      "component",
      {
        libraryName: '@xiaoe/spark',
          style: false
      },
      '@xiaoe/spark'
    ],
    [
      'import',{
        libraryName: '@xiaoe/vant',
        libraryDirectory: 'es',
        style: true
      },
      '@xiaoe/vant'
    ],
    [
      'component', {
      libraryName: '@xiaoe/xiaoe-common-info-collect',
      style: true
    },
      '@xiaoe/xiaoe-common-info-collect'
    ],
  ],
};
